package workerman

import (
	"context"

	"zerorpc/app/worker/internal/config"
	"zerorpc/app/worker/internal/svc"
	"zerorpc/app/worker/internal/task/mqtt"

	"github.com/zeromicro/go-zero/core/service"
)

func AddTask(c config.Config) []service.Service {
	svcContext := svc.NewServiceContext(c)
	ctx := context.Background()

	var services = []service.Service{
		mqtt.NewMqttConsumer(ctx, svcContext),
	}

	return services
}
